<a href="admin/modules/tangra_cms/vpage/vpage_templates.php" class="action_back">Back to templates for virtual pages</a><br /><br />
<table width="100%" border="1" cellspacing="0" cellpadding="0" class="info_page_main_table">
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td class="info_page_section_title" width="100">Base details</td>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="4">
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Name</td>
                                <td align="left" class="info_page_content_cell">{$template->get_name()|escape:"htmlall"}</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Class path</td>
                                <td align="left" class="info_page_content_cell">{$template->get_wp_path()}</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Class name</td>
                                <td align="left" class="info_page_content_cell">{$template->get_wp_class_name()}</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">HTML template resource</td>
                                <td align="left" class="info_page_content_cell">{$template->get_page_name()}</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Custom edit page path</td>
                                <td align="left" class="info_page_content_cell">{$template->get_edit_path()}</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Custom manage page path</td>
                                <td align="left" class="info_page_content_cell">{$template->get_man_path()}</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Custom delete page path</td>
                                <td align="left" class="info_page_content_cell">{$template->get_del_path()}</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Caching enabled?</td>
                                <td align="left" class="info_page_content_cell">{if $template->get_cache()}Yes{else}No{/if}</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Cache expiry</td>
                                <td align="left" class="info_page_content_cell">{if $template->get_cache_expiry() > 0}
                                													{$template->get_cache_expiry()} seconds
                                                                                {else}
	                                                                                {if $template->get_cache_expiry() == 0}
                                                                                    	Using <a href="admin/modules/tangra_cms/settings/settings.php">global setting</a>
                                                                                    {else}
                                                                                    	Never expire
                                                                                    {/if}
                                                                                {/if}
								</td>
                            </tr>    
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Template cache settings are mandatory?</td>
                                <td align="left" class="info_page_content_cell">{if $template->get_hard_cache()}Yes{else}No{/if}</td>
                            </tr>                                                    
                        </table>
                    </td>
                    <td class="info_page_link_cell" align="center" width="100"><a href="admin/modules/tangra_cms/vpage/vpage_template_edit.php?vpage_template_obj_id={$template->get_id()}" class="action_edit">Edit</a></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td class="info_page_section_title" width="100">Info</td>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="4">
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Pages using this template</td>
                                <td align="left" class="info_page_content_cell">{$pages_count}{if $pages_count}<span class="status_warning"> WARNING: Editing template may cause associated pages to stop working!</span>{/if}</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Pages online</td>
                                <td align="left" class="info_page_content_cell">{$pages_online_count}</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>                                     
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td class="info_page_section_title" width="100">Attributes</td>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="4">
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">System attributes</td>
                                <td align="left" class="info_page_content_cell">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td style="padding-bottom:5px;"><a href="admin/modules/tangra_cms/vpage/vpt_sa_edit.php?vpt_sa_add_new=1&amp;_transit_template={$template->get_id()}" class="action_add">Create new system attribute placeholder</a></td>
                                        </tr>
                                        {if $sas}
                                        <tr>
                                            <td>
                                                <table width="100%" border="0" cellspacing="1" cellpadding="4"  class="metallic_grid_table">
                                                	<tr>
                                                    	<td width="45%" class="metallic_grid_header"><strong>Name</strong></td>
                                                    	<td width="1%" class="metallic_grid_header"><strong>Required</strong>?</td>
                                                    	<td width="34%" class="metallic_grid_header"><strong>Default value</strong></td>                                                        
                                                    	<td width="25%" class="metallic_grid_header"><strong>HID / Exported as (*)</strong></td>                                                        
                                                    	<td width="16" class="metallic_grid_header">&nbsp;</td>
                                                    	<td width="16" class="metallic_grid_header">&nbsp;</td>                                                        
                                                    </tr>
               										{foreach from=$sas item=sa}                                        
                                                    <tr class="metallic_grid_body" onmouseover="this.className='metallic_grid_body_over';return true;" onmouseout="this.className='metallic_grid_body';return true;">
                                                    	<td>{$sa.sa_name|escape:"htmlall"}</td>
                                                    	<td>{if $sa.required}Yes{else}No{/if}</td>
                                                    	<td>{if $sa.default_value}{$sa.default_value}{else}<span class="no_value">No value</span>{/if}</td>
                                                    	<td>{$sa.export_name}{if $sa.export}*{/if}</td>                                                        
                                                    	<td width="16"><a href="admin/modules/tangra_cms/vpage/vpt_sa_edit.php?vpt_sa_obj_id={$sa.id}&amp;_transit_template={$template->get_id()}"><img src="/img/modules/crystal_icons_small/16x16/edit.png" alt="edit" width="16" height="16" border="0" /></a></td>                                                                                                                
                                                    	<td width="16"><a href="admin/modules/tangra_cms/vpage/vpt_sa_del.php?delete={$sa.id}&amp;_transit_template={$template->get_id()}"><img src="/img/modules/crystal_icons_small/16x16/delete.png" alt="delete" width="16" height="16" border="0" /></a></td>
                                                    </tr>
			                                        {/foreach}
                                                </table>
                                            </td>
                                        </tr>
                                        {else}
                                        <tr><td><span class="no_value">No items added.</span></td></tr>
                                        {/if}   

                                   
                                    </table>
                                </td>
                            </tr>                        
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Content items</td>
                                <td align="left" class="info_page_content_cell">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td style="padding-bottom:5px;"><a href="admin/modules/tangra_cms/vpage/vpt_ci_edit.php?vpt_ci_add_new=1&amp;_transit_template={$template->get_id()}" class="action_add">Create new content item placeholder</a></td>
                                        </tr>
                                        
                                        {if $cis}
                                        <tr>
                                            <td>
                                                <table width="100%" border="0" cellspacing="1" cellpadding="4"  class="metallic_grid_table">
                                                	<tr>
                                                    	<td width="35%" class="metallic_grid_header"><strong>Name</strong></td>
                                                    	<td width="25%" class="metallic_grid_header"><strong>Type</strong></td>
                                                    	<td width="15%" class="metallic_grid_header"><strong>Required</strong>?</td>
                                                    	<td width="25%" class="metallic_grid_header"><strong>Exported as</strong></td>
                                                    	<td width="16" class="metallic_grid_header">&nbsp;</td>
                                                    	<td width="16" class="metallic_grid_header">&nbsp;</td>                                                        
                                                    </tr>
               										{foreach from=$cis item=ci}                                        
                                                    <tr class="metallic_grid_body" onmouseover="this.className='metallic_grid_body_over';return true;" onmouseout="this.className='metallic_grid_body';return true;">
                                                    	<td>{$ci.ci_name|escape:"htmlall"}</td>
                                                    	<td>{$ci.type}</td>
                                                    	<td>{if $ci.required}Yes{else}No{/if}</td>
                                                    	<td>{$ci.export_name}</td>
                                                    	<td width="16"><a href="admin/modules/tangra_cms/vpage/vpt_ci_edit.php?vpt_ci_obj_id={$ci.id}&amp;_transit_template={$template->get_id()}"><img src="/img/modules/crystal_icons_small/16x16/edit.png" alt="edit" width="16" height="16" border="0" /></a></td>                                                                                                                
                                                    	<td width="16"><a href="admin/modules/tangra_cms/vpage/vpt_ci_del.php?delete={$ci.id}&amp;_transit_template={$template->get_id()}"><img src="/img/modules/crystal_icons_small/16x16/delete.png" alt="delete" width="16" height="16" border="0" /></a></td>
                                                    </tr>
			                                        {/foreach}
                                                </table>
                                            </td>
                                        </tr>
                                        {else}
                                        <tr><td><span class="no_value">No items added.</span></td></tr>
                                        {/if}                                        
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Menus</td>
                                <td align="left" class="info_page_content_cell">
                                    <table width="400" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td style="padding-bottom:5px;"><a href="admin/modules/tangra_cms/vpage/vpt_menu_select.php?template={$template->get_id()}" class="action_add">Select menu</a></td>
                                        </tr>  
                                        {if $menus}
                                        <tr>
                                            <td>
                                                <table width="100%" border="0" cellspacing="1" cellpadding="4"  class="metallic_grid_table">
	                                                <tr>
                                                    	<td class="metallic_grid_header" align="left">Menu name</td>
                                                    	<td width="16"  class="metallic_grid_header">&nbsp;</td>
                                                    </tr>
			 										{foreach from=$menus item=menu}
	                                                <tr class="metallic_grid_body" onmouseover="this.className='metallic_grid_body_over';return true;" onmouseout="this.className='metallic_grid_body';return true;">
                                                    	<td align="left">{$menu.menu_name}</td>
                                                    	<td width="16"><a href="admin/modules/tangra_cms/vpage/vpt_menu_select.php?template={$template->get_id()}&amp;deselect={$menu.id}" class="action_delete">Remove</a></td>
                                                    </tr>
                                                    {/foreach}
                                                </table>
                                            </td>
                                        </tr>
                                        {/if}
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>